package com.x.ant.util;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by xuning on 2017/3/4.
 */
public class Constant {
    public final static String COLUMN_TYPE_STRING = "string";
    public final static String COLUMN_TYPE_ENUM = "enum";
    public final static String COLUMN_TYPE_ENUMS = "enums";
    public final static String COLUMN_TYPE_INTEGER = "integer";
    public final static String COLUMN_TYPE_FLOAT = "float";
    public final static String COLUMN_TYPE_DATE = "date";
    public final static String COMMA = ",";
    public final static String YYYY_MM_DD = "yyyy/MM/dd";
    public final static String PHOTO_TEMPLATE_URL = "/upload/photo/template/";
    public final static String PHOTO_HEAD_URL = "/upload/photo/head/";
    public final static String MINUS = "-";
    public final static String VLINE= "\\|";
    public final static String EQUALS= "=";
    public final static String ZERO= "0";
    public final static String DOT_PNG= ".png";
    public final static String CRM_ORG = "CrmOrg";
    public final static String ORG_FULLNAME_PINYIN = "orgFullName.pinyin";
    public final static String DC_ESTATE = "DcEstate";
    public final static String ESTATE_ID = "estateId";
    public final static String ESTATE_NAME_PINYIN = "estateName.pinyin";
    public final static String ESTATE_ALIAS_PINYIN = "estateAlias.pinyin";
    public final static String ESTATE_ADDRESS_PINYIN = "estateAddress.pinyin";
    public final static String DISTRICT_ID = "districtId";

    public static String smsurl;
    public static Map<String, String> smsParams;

    public static void setSmsurl(String smsurl) {
        Constant.smsurl = smsurl;
    }

    public static void setSmsParams(Map<String, String> smsParams) {
        Constant.smsParams = smsParams;
    }

    public static void main(String[] args) {
        Map<String, Integer> map11 = new HashMap<String, Integer>();
        map11.put("key1", 1);
        Map<String, Integer> map22 = map11;
        map11.put("key1", 3);
        map22.put("key1", 4);
        System.out.println(map11);
        System.out.println(map22);
        System.out.println("--------------------------------------------------------------");

        Map<String, Integer> map1 = new HashMap<String, Integer>();
        map1.put("key1", 1);
        Map<String, Integer> map2 = new HashMap<String, Integer>();
        map2.putAll(map1);
        map1.put("key1", 3);
        map2.put("key1", 4);
        System.out.println(map1);
        System.out.println(map2);
        System.out.println("--------------------------------------------------------------");

        Map<String, Integer> map3 = new HashMap<String, Integer>();
        map3.put("key1", 1);
        Map<String, Integer> map4 = new HashMap<String, Integer>();
        map4.putAll(map3);
        System.out.println(map4);
        map3.put("key1", 2);
        System.out.println(map4);
        System.out.println("--------------------------------------------------------------");


    }
}
